"use strict";

/**
 * @ngdoc service
 * @name myAppApp.openApi
 * @description
 * # openApi
 * Service in the myAppApp.
 */
angular.module("jgappApp").service("openApi", function () {
  var ip = "https://oa.jianguanoa.com/";
  // var apiIp = "https://api.jianguanoa.com/1.0/";
  // var ip = "/proxy/";

  // var baseIp = "https://yun-test.jianguanoa.com/";
  // var ip = baseIp + "bm/";
  // var apiIp = baseIp + "app-api/1.0/";

  var OpenApi = {
    ip: ip,
    // apiIp: apiIp,
    start: ip + "my-process/start-process-and-save-form-with-config-id.do",
    users: ip + "account-user/getSimpleUserPage.do",
    getAppSetting: ip + "app-setting/get-app-param.do",
    checkSession: ip + "sys/check-session-active.do",
    getUntreatedCount: ip + "my-task/get-untreated-count.do",
    getToken: ip + "rongyun/get-token.do",
    getAccountLeftTime: ip + "app-setting/get-account-left-time.do",
    getplacard: ip + "sys/placard/get.do",
    appValidate: ip + "sys/app-validate.do", //登录安全验证
    authlogin: ip + "sys/new-app-login.do", //新版登录
    login: ip + "sys/app-login.do", //登录
    logout: ip + "sys/app-loginOut.do", //退出登录
    getRootFolder: ip + "oss-form-folder/get-root-folder-id.do", //获取文件夹根目录ID
    getFolderlist: ip + "oss-form-folder/find-file-list.do", //获取文件列表
    updateClientId: ip + "app-setting/update-client-id.do", //更新设备id
    feedback: ip + "app-setting/add-feedback.do", //意见反馈
    addressbook: ip + "address-book/get-addresses-app.do", //通讯录
    addressbookTree: ip + "address-book/get-user-tree.do", //通讯录
    getAllDepartment: ip + "address-book/get-all-department.do", //获取部门列表
    getUserDetail: ip + "address-book/get-addresses-by-userId.do", //获取个人详情
    getAllprocess: ip + "bpm-process-config/get-all-process-name.do", //获取所有流程类别列表
    userInfo: ip + "business-pub/get-app-user-info.do",
    getrelList: ip + "linked-data-config/get-all-by-key.do", //获取关联模块列表
    getPageListByAccount: ip + "user/getPageListByAccount.do", //获取审批人员接口
    caduitObject: "/caduit-object/add-or-update.do", //获取审批人员接口
    category: ip + "my-process/list-as-category-app.do",
    borPerformance: ip + "performance/find-page.do", //借业绩列表接口
    returnPerformance: ip + "performance-return/get-can-return-pers.do", //还业绩列表接口
    getKeyType: ip + "public/get-key-and-value.do", //投标方式
    bidNotice: "/my-bid-notice/add-or-update.do", //投标公示栏
    bidCharge: "/bid-charge-single/add-or-update.do", //投标费用
    bidApply: "/bid-apply/add-or-update.do", //投标申请单
    introletter: "/introduction-letter/add-or-update.do", //介绍信
    payMoney: "/pay-money/add-or-update.do", //付款单
    getAccountHistoryRecord: ip + "pay-money/get-account-history-record.do", //收款人历史
    borrowMoney: "/borrow-money/add-or-update.do", //借款单
    getBorrowHistoryRecord: ip + "borrow-money/get-account-history-record.do", //借款人历史
    reimbursement: "/reimbursement/add-or-update.do", //报销单
    getReimbursementHistoryRecord:
      ip + "reimbursement/get-account-history-record.do", //报销人历史
    borrowMaterial: "/borrow-material/add-or-update.do", //借物资
    returnMaterial: "/return-material/add-or-update.do", //还物资
    buyMaterial: "/buy-material/add-or-update.do", //物资采购
    jwzlist: ip + "borrow-material/find-enough-stock-materials.do", //可借物资列表
    hwzlist: ip + "return-material/find-need-return-details-app.do", //可借物资列表
    wzlist: ip + "common-store/find-page.do", //物资采购列表
    getRelModule_kyz: ip + "carve-seal/get-current-user-module-names.do", //刻印章关联模块
    getRelModule_jwz: ip + "borrow-material/get-current-user-module-names.do", //用印申请关联模块
    getRelModule_tzfw: ip + "public-doc/get-current-user-module-names.do", //通知发文关联模块
    getRelModule_ajdj: ip + "case-register/get-current-user-module-names.do", //通知发文关联模块
    getRelModule_yhkh: ip + "use-seal/get-current-user-module-names.do", //用印申请关联模块
    getRelModule_yysq: ip + "open-account/get-current-user-module-names.do", //银行开户关联模块
    getRelModule_bg: ip + "bank-guarantee/get-current-user-module-names.do", //银行保函关联模块
    getRelModule_fk: ip + "pay-money/get-current-user-module-names.do", //付款关联模块
    getRelModule_jk: ip + "borrow-money/get-current-user-module-names.do", //借款单关联模块
    getRelModule_cc: ip + "attendance-apply/get-current-user-module-names.do", //出场申请关联模块
    getRelModule_oth: ip + "other-money/get-current-user-module-names.do", //其他关联模块
    getRelModule_comc: ip + "common-contract/get-current-user-module-names.do", //通用合同
    getRelModule_bx: ip + "reimbursement/get-current-user-module-names.do", //报销关联模块
    getRelModule_kk: ip + "project-cost/get-current-user-module-names.do", //项目扣款关联模块
    getRelModule_js: ip + "project-settlement/get-current-user-module-names.do", //项目结算关联模块
    getRelModule_caduit: ip + "caduit-object/get-current-user-module-names.do", //自定义关联模块
    getRelModule_rw: ip + "work-task/get-current-user-module-names.do",
    getRelModule_xmbx:
      ip + "project-reimburse/get-current-user-module-names.do",
    getRelpage: ip + "business-pub/get-related-pages-for-app.do", //模块内列表
    getLinkedpage: ip + "business-pub/get-linked-data-from-project.do", //模块内列表
    getModuleCustomfield: ip + "business-pub/get-module-for-customfield.do", //模块内列表
    projectMoney: "/project-money/add-or-update.do", //工程款
    projectMoneyHistory: ip + "project-money/get-account-history-record.do", //工程款
    findProjectContract: ip + "tax-deduction/find-project-contract.do", //选择工程合同
    findCommonContract: ip + "tax-deduction/find-common-contract.do", //选择通用合同
    findPaymentInvoice: ip + "tax-deduction/find-payment-invoice.do", //选择成本发票
    taxDeduction: "/tax-deduction/add-or-update.do", //增值税
    taxrecord: "/tax-record/add-or-update.do", //完税凭证
    paymentInvoice: "/payment-invoice/add-or-update.do", //成本发票
    depositApply: "/deposit-apply-single/add-or-update.do", //保证金
    depositApplyHistory:
      ip + "deposit-apply-single/get-account-history-record.do", //保证金
    depositApplyReceiptHistory:
      ip + "deposit-apply-single/get-receipt-history-record.do", //保证金
    performanceBond: "/performance-bond/add-or-update.do", //履约保证金
    otherMoney: "/other-money/add-or-update.do", //收款
    performanceApply: "/performance-apply/add-or-update.do", //借业绩
    performanceApplySelectPer: "performanceApply_select_performance", //借业绩当中选择投标申请单
    performanceApplySelectProject: "performanceApply_select_project", //借业绩当中选择业绩列表
    performanceList: ip + "performance/get-detail-for-app.do", //借业绩证明材料列表
    performanceListA: ip + "performance-return/get-details.do", //还业绩证明材料列表
    performanceReturn: "/performance-return/add-or-update.do", //还业绩
    certificateApply: "/certificate-apply-new/add-or-update.do", //借证件
    certificateReturn: "/certificate-return/add-or-update.do", //还证件
    getAppointmentRecord: ip + "certificate/get-appointment-record.do", //借证记录
    getReturnRecord: ip + "certificate-return/get-return-record-by-cerId.do", //还证记录
    getAllCertificateA: ip + "certificate-return/get-can-return-cers.do", //当前用户可以还的证件
    getAllCertificate:
      ip + "certificate-apply-single/get-all-certificate-by-user.do", //当前用户可以借的证件
    otherDatamemo: ip + "other-datamemo/get-memo.do", //获取评论追加列表
    addDatamemo: ip + "other-datamemo/add-or-update.do", //新增备注
    getCerkey: ip + "public/get-key-and-value.do", //获取证件类别
    travelApply: "/travel-apply/add-or-update.do", //出差条申请
    bdApply: "/bd-apply/add-or-update.do", //补登条申请
    leaveApply: "/leave/add-or-update.do", //请假条申请
    overtimeApply: "/overtime-apply/add-or-update.do", //加班条申请
    daysoffApply: "/daysoff-apply/add-or-update.do", //补休条申请
    certificateCost: "/certificate-cost/add-or-update.do", //证件费用
    goOut: "/go-out/add-or-update.do", //外出办事
    useCar: "/use-car/add-or-update.do", //用车申请
    returnCar: ip + "use-car/return-car.do", //用车申请审批
    assignCar: ip + "use-car/assign-car.do", //用车申请审批
    useSeal: "/use-seal/add-or-update.do", //用印登记
    certificateTransfer: "/certificate-transfer/add-or-update.do", //证件转出注销
    openAccount: "/open-account/add-or-update.do", //银行开户
    bankGuarantee: "/bank-guarantee/add-or-update.do", //银行保函
    taxReceipt: "/tax-receipt-register/add-or-update.do", //工程税票
    addedValueTax: "/added-value-tax/add-or-update.do", //增值税发票
    outRun: "/out-run/add-or-update.do", //外经证
    certificateDeal: "/certificate-deal/add-or-update.do", //办证件申请
    carveSeal: "/carve-seal/add-or-update.do", //刻印章申请
    borrowSeal: "/borrow-seal/add-or-update.do", //借印章申请
    returnSeal: "/return-seal/add-or-update.do", //还印章申请
    bcompanyContract: "/bcompany-contract/add-or-update.do", //分公司合同
    agreementApply: "/agreement-apply/add-or-update.do", //证件合同
    contractApply: "/contract-apply-single/add-or-update.do", //工程合同
    contractcommon: "/common-contract/add-or-update.do", //通用合同
    contractpurchase: "/contract-purchase/add-or-update.do", //采购合同
    contractrent: "/contract-rent/add-or-update.do", //租赁合同
    contractsubpackage: "/contract-subpackage/add-or-update.do", //分包合同
    contractother: "/contract-other/add-or-update.do", //其他合同
    godownEntry: "/godown-entry/add-or-update.do", //入库单
    myTask: ip + "my-task/get-untreated.do", //获取未处理任务
    myProcess: ip + "my-process/get-wait-auditing.do", //获取待审批任务
    gettreated: ip + "my-task/get-treated.do", //获取已处理任务
    getUntreated: ip + "my-task/get-untreated-and-unaudited-count.do", //获取未未读信息数目
    myProcessList: ip + "my-process/my-process-list-for-app.do", //"我的"模块接口
    allDetailApi: ip + "my-process/get-primary-object.do", //查看详情通用接口
    getTaskInfo: ip + "my-task/find-gtask-info.do", //查看详情通用接口(用于审批)
    myProcessLog: ip + "my-process/find-his.do", //查看审批日志
    myProcessLogA: ip + "my-task/find-his.do", //查看审批日志
    completeAudit: ip + "my-task/complete-aduit-task.do", //完成审批接口
    completeSyncAduit: ip + "my-task/complete-sync-aduit-task.do", //并行完成审批接口
    completeCaduitObject: ip + "caduit-object/caduit.do", //自定义审批接口
    getAppVersion: ip + "business-pub/get-app-version.do", //完成审批接口
    addReport: ip + "work-reoprt/add.do", //新增报告
    updateReport: ip + "work-reoprt/update.do", //修改报告
    delReport: ip + "work-reoprt/del.do", //修改报告
    getworklog: ip + "work-reoprt/find-page-for-app.do", //首页报告列表
    getworklogDetail: ip + "work-reoprt/get.do", //获取报告详情
    setTaskWork: ip + "work-reoprt-action/confirm-read.do", //设置报告已读
    workReoprtFollow: ip + "work-reoprt-follow/get-last-time-follows.do", //加载上一次的关注人
    getFollows: ip + "work-reoprt-follow/get-follow-tree-list-app.do", //选择关注人
    ReadworkReoprt: ip + "work-reoprt-action/read.do", //设置报告已阅报告
    getNextOrPrev: ip + "work-reoprt/next-or-prev.do", //获取上(下)一个报告
    replyReport: ip + "work-reoprt-action/reply.do", //为某个日报添加一个评论
    delReplyReport: ip + "work-reoprt-action/del-reply.do", //为某个日报删除一个评论
    getdepts: ip + "worktask-public/get-depts.do", //获取用户所属下属部门
    getusersBydepId: ip + "worktask-public/get-users.do", //获取该部门下所有用户
    deleteprocess: ip + "my-process/delete-process-ins.do", //删除流程
    getRelatedModuleData: ip + "business-pub/get-related-module-data.do", //关联模块
    uploadFile: ip + "business-pub/uploadFile.do", //上传单个文件
    uploadFileBatch: ip + "business-pub/uploadFileBatch.do", //上传多个文件
    uploadFile2: ip + "oss-form-folder/upload-file.do", //上传文件
    downLoadFile: ip + "business-pub/downLoadFile.do", //下载单个文件
    deleteFile: ip + "business-pub/deleteFile.do", //删除单个文件
    previewshowimg: ip + "business-pub/show-img.do", //预览单个文件
    // uploadUrl: apiIp + "public/upload-img", //预览单个文件
    showimg: ip + "app-setting/show-thumbnail.do", //预览文件(aliclound)
    myBidNotice: ip + "my-bid-notice/find-page.do", //设置通知状态
    systemNotify: ip + "system-notify/get-system-notice-app.do", //设置通知状态
    settingportrait: ip + "app-setting/modify-portrait.do", //设置头像
    previewfile: ip + "business-pub/preview/", //预览附件
    getPushStatus: ip + "app-setting/get-push-swtich-status.do", //获取通知状态
    setPushStatus: ip + "app-setting/swtich-push-status.do", //设置通知状态
    getuserinfo: ip + "rongyun/get-all-user-base-info.do", //获取用户信息数组
    getgrouplist: ip + "rongyun-group/get-grouplist.do", //获取群组列表
    creategroup: ip + "rongyun-group/create-group.do", //创建群组
    dismissgroup: ip + "rongyun-group/dismiss-group.do", //解散群组
    joingroup: ip + "rongyun-group/join-group-batch.do", //群组加人
    quitgroup: ip + "rongyun-group/quit-group.do", //退出群组
    refreshgroup: ip + "rongyun-group/refresh-group.do", //修改群组名称
    selectuser: ip + "rongyun/select-user-tree-by-flag.do", //发起聊天或者添加群组
    getGroup: ip + "rongyun-group/get-group.do", //获取群组详情
    getGroupUsers: ip + "rongyun/get-user-tree-by-flag.do", //获取群组成员列表
    customFields: ip + "custom-fields/get-custom-Fields-by-form-key.do", //获取自定义字段
    getPreviewUrl: ip + "business-pub/getPreviewUrl/", //获取文件外网yulan路径
    downLoadFile: ip + "business-pub/get-download-url.do", //获取文件外网下载路径
    previewFolderFile: ip + "business-pub/preview-in-folder.do", //预览文件夹中文件
    getFileUrl: ip + "oss-form-folder/get-file-url.do", //获取文件下载地址
    getComment: ip + "process-comment/get.do", //流程评论列表
    addComment: ip + "process-comment/add.do", //流程评论列表
    // 考勤模块接口
    attAdd: ip + "attendance-config/add-or-update.do", //新增考勤
    attList: ip + "attendance-config/find-list.do", //查看考勤列表
    attGet: ip + "attendance-config/get.do", //获取单个考勤详情
    attDel: ip + "attendance-config/del.do", //删除某个考勤
    attSelectdepartment: ip + "attendance-config/select-department.do", //选择考勤部门时的列表
    attGetExclusion: ip + "attendance-config/get-exclusion.do", //获取不需考勤人员的列表
    attSelectExclusionn: ip + "attendance-config/select-exclusion.do", //选择不需考勤人员的列表
    getAttendanceStatus: ip + "attendance-app/get-attendance-status.do", //获取考勤状态
    attConfig: ip + "attendance-app/get-attendance-configs.do", //获取考勤状态
    
    changeOvertime: ip + "attendance-app/change-to-overtime-status.do", //切换到加班
    punchClock: ip + "attendance-app/punch-clock.do", //打卡
    attendanceLoglist: ip + "attendance-month-log/get-month-list.do", //获取考勤年月统计列表
    attendanceLog: ip + "attendance-month-log/get-month-log-for-app.do", //获取某个考勤年月统计
    attLogDetail: ip + "attendance-month-log/get-month-log-total-detail-app.do", //获取考勤明细
    certificateShift: ip + "certificate-shift/get-shift-cers.do", //获件调配的证件
    addcertificateShift: "/certificate-shift/add-or-update.do", //获件调配的证件
    commisionApply: "/commision-apply/add-or-update.do", //提成申请流程
    commisionApplyrel: ip + "commision-apply/get-current-user-module-names.do", //获件调配的证件
    publicDoc: ip + "public-doc/read-doc.do", //自动审批
    attendanceApply: "/attendance-apply/add-or-update.do", //出场申请
    attendanceCer: ip + "certificate/get-page.do?isValid=1",
    sendAduitNotice: ip + "my-process/send-aduit-notice-manually.do", //手动设置通知
    flowCancel: ip + "my-process/undo-my-process.do", //撤回流程
    transferTask: ip + "my-task/transfer-task.do", //转交流程
    fallBackTask: ip + "my-task/complete-and-jump-task.do", //回退流程
    fallbacklist: ip + "/my-task/findNodesForRollback.do", //回退流程节点列表
    signinStatus: ip + "attendance-signin-log/get-signin-status.do", //获取当天签到次数和当前时间
    signin: ip + "attendance-signin-log/signin.do", //签到
    signinLoglist: ip + "attendance-signin-log/find-list-by-month.do", //查询当前用户本月的所有可以看到的签到记录
    signinLog: ip + "attendance-signin-log/find-page-by-month.do", //查询当前用户本月的所有签到记录
    useCarrel: ip + "use-car/get-current-user-module-names.do", //查询当前用户本月的所有签到记录
    // 数据查询接口
    getsearchDataList: ip + "app-data-list/get-main-menu.do", //获取一级菜单
    getSubsearchDataList: ip + "app-data-list/get-sub-menu.do", //获取二级菜单
    getSubDataConfig: ip + "app-data-list/get-app-display-config.do", //获取二级菜单的配置数据
    reminderConfig: ip + "reminder-config/get-all-remind-app.do", //首页提醒列表
    // 工作任务模块接口
    worktask: ip + "work-task/find-page-for-app.do", //工作任务列表
    worktaskDetail: ip + "work-task/get.do", //工作任务详情
    setTaskStatus: ip + "work-task/setStatus.do", //设置工作任务状态
    updateTask: ip + "work-task/update.do", //修改工作任务
    replyTask: ip + "work-task-action/reply.do", //评论工作任务
    delTask: ip + "work-task/del.do", //删除工作任务
    addTask: ip + "work-task/add.do", //新增工作任务
    getFrequentConcerns: ip + "concern-group/get-frequent-concerns.do", //获取关注人
    // 项目模块
    projectGathering: "/project-gathering/add-or-update.do", //收款
    projectPayment: "/project-payment/add-or-update.do", //付款
    projectPaymentHistory: ip + "project-payment/get-account-history-record.do", //付款人历史
    projectCost: "/project-cost/add-or-update.do", //扣款
    addprojectRefund: "/project-refund/add-or-update.do", //退款
    projectrepay: "/project-repay/add-or-update.do", //清账
    modifyRecord: ip + "project-store/find-modify-records.do", //变更记录
    gatheringList: ip + "project-gathering/find-page.do", //收款记录
    repayList: ip + "project-repay/find-page.do", //清账记录
    topaycostList: ip + "project-cost/find-page-for-payment.do", //待清记录
    paymentList: ip + "project-payment/find-page.do", //付款记录
    costList: ip + "project-cost/find-page.do", //扣款记录
    refundList: ip + "project-refund/find-page.do", //退款记录
    projectRefund: ip + "project-refund/find-refunds.do", //退回记录
    deductionList: ip + "project-store/get-deduction.do", //该项目最近完成结算的扣款记录
    appendDeductMoney: ip + "project-cost/append-deduct-money.do", //扣款明细
    projectlist: ip + "project-store/find-page.do", //该项目最近等待结算的扣款记录
    unclearList: ip + "project-repay/load-unclear-cost-record.do", //清账明细
    getlistkeyvalues: ip + "public/list-key-and-value.do", //清账明细
    supplementcontract: "/supplement-contract/add-or-update.do", //补充协议
    projectborrowing: "/project-borrowing/add-or-update.do", //项目借款
    projectreimburse: "/project-reimburse/add-or-update.do", //项目报销
    projectborrowingHistory:
      ip + "project-borrowing/get-account-history-record.do", //项目借款
    projectreimburseHistory:
      ip + "project-reimburse/get-account-history-record.do", //项目报销人历史
    projectsettlement: "/project-settlement/add-or-update.do", //项目结算
    supplementContract: ip + "supplement-contract/find-page.do", //合同的补充协议
    appendPaymentMoney: ip + "project-money/append-deduct-money.do", //扣款
    appendProjectPayment: ip + "project-payment/append-deduct-money.do", //扣款
    migrantWages: "/migrant-wages/add-or-update.do", //工资付款
    getUsers: ip + "business-pub/get-user-scope.do", //获取人员列表
    publicdoc: "/public-doc/add-or-update.do", //通知发文
    outputInvoice: "/output-invoice/add-or-update.do", //销项发票
    addinputInvoice: "/input-invoice/add-or-update.do", //进项发票
    addtaxesPayment: "/taxes-payment/add-or-update.do", //缴费记录
    caseRegister: "/case-register/add-or-update.do", //案件登记
    contractsList: ip + "project-store/get-ref-contracts.do", //合同记录
    migrantWages2: ip + "migrant-wages/find-page.do", //农民工工资付款记录
    borrowingList: ip + "project-borrowing/find-page.do", //借款记录
    projectReimburseList: ip + "project-reimburse/find-page.do", //报销记录
    projectDeposit: ip + "project-deposit/find-page.do", //保证金记录
    inputInvoice: ip + " /input-invoice/find-page.do", //进项发票
    outputInvoiceList: ip + "output-invoice/find-page.do", //销项发票
    taxesPayment: ip + "taxes-payment/find-page.do", //缴税记录
    creditRefund: ip + "credit-refund/find-page.do", //抵税退税
    getPayments: ip + "project-store/get-payments.do", //合同支付工程款的记录
    materialAccount: ip + "material-account/get-ads.do", //对账增扣项目
    materialPurchase: "/material-purchase/add-or-update.do", //材料计划
    materialEntering: "/material-entering/add-or-update.do", //材料入库
    materialWarehouse: ip + "material-warehouse/find-page.do", //获取仓库信息
    materialNormlist: ip + "material-normlist/find-page.do", //从材料清单中选择材料
    materialTotalPlan: ip + "material-total-plan/page.do", //从材料总计划中选择材料
    materialPurchaseList: ip + "material-purchase/get-no-entering-details.do", //从材料计划中选择材料
  };

  return OpenApi;
});
